package com.miaosha.ms_04.exception;

import com.miaosha.ms_04.result.CodeMsg;

/**
 * @Description //全局异常
 * @Author Administrator
 * @DATE 2020/9/17 23:21
 **/
public class GlobalException extends RuntimeException {

    private CodeMsg codeMsg;

    public GlobalException(CodeMsg codeMsg) {
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }

    public CodeMsg getCodeMsg() {
        return codeMsg;
    }
}
